package com.station.search.plugin.inlist;

import javax.validation.Constraint;
import java.lang.annotation.*;

/**
 * @author: JT
 * @date: 2021/8/31
 * @Title:
 */
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {InListValidator.class})
public @interface InList {

    boolean required() default true;

    String message() default "请输入正确的手机格式";

    Class<?>[] groups() default {};

    String[] list() default {};

//    Class<? extends Payload>[] payload() default {};
}
